const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  
  devServer: {
    host: 'wanfeng-cn.gnway.cc',
    port: 80,
    proxy: {
      '/api': {
        // target: 'http://localhost:9000', // 后端服务的 URL
       target: 'http://localhost:8888/api', // 后端服务的 URL
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
